﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Text;
using System.IO;

namespace Grishko.UI
{
    /// <summary>
    /// Summary description for Tools
    /// </summary>
    public class Tools
    {
        public Tools()
        {
        }

        public static string ContolToHTML(Control ctl)
        {
            StringBuilder sb;
            MemoryStream ms = new MemoryStream();
            sb = new StringBuilder();
            StringWriter sw = new StringWriter(sb, System.Globalization.CultureInfo.InvariantCulture);
            System.Web.UI.Html32TextWriter w = new System.Web.UI.Html32TextWriter(sw);
            ctl.RenderControl(w);
            return sb.ToString();
        }
    }
}
